﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace B.S.BaseData.Manage.infrastructure.Migrations
{
    public partial class wang222 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "ReportlossesModel",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Lossreportnumber = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Thetypeoflossreport = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Associatetheordernumber = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Makeasingle = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Thetimewhentheorderwasmade = table.Column<DateTime>(type: "datetime2", nullable: true),
                    Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Productname = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Productcode = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Specification = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Batch = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Unitprice = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Reportedlossquantity = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Warehouse = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Thecurrentlocation = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Reviewstatus = table.Column<int>(type: "int", nullable: true),
                    Reviewers = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Reasonforreview = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Reviewtime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    IsDelete = table.Column<int>(type: "int", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ReportlossesModel", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "ReportlossesModel");
        }
    }
}
